package cn.fay.chapter12;

import java.util.Random;

public class Test2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Random random=null;
			int i = random.nextInt(20);
			System.out.println(i);
		} catch (NullPointerException e) {
			
			e.printStackTrace(System.err);
		}
	}

}
